<?php
    if(!$this->session->userdata('logged_in')) {
        redirect('logout');
    }
?>
<div class="page_header_groups">
<?php echo '<p class=p_header>' . $header_title . '</p>';?>
</div>
<div id="bulletin_container">
    <div id="bulletin_sidebar">
        <div id="notification_post">
            <p class="menu_title">Menu</p>
            <?php
            echo '<p class="sub_group_name">'.anchor(site_url().'authenticated/posts','All').'</p>';
                echo '<p class="sub_group_name">'.anchor(site_url().'authenticated/bulletin/posts', 'Bulletin Posts').'</p>';
                echo '<p class="sub_group_name">'.anchor(site_url().'authenticated/group/posts', 'Group Posts').'</p>';
             
            ?>
        </div>
    </div>
    <div id="bulletin_post">
        <div class="post">
            <?php 
                echo "<div id='img_no_match'>".img($img)."</div>"; 
                if($this->uri->segment(2) === 'group') {
                    echo '<p id="no_match_found">Your groups currently dont have any posts.</p>';
                }else{
                    echo '<p id="no_match_found">No Match Found.</p>';
                }
                
                #echo $segments;
            ?>
            
    <div class="balancer">

    </div>
        </div>
    </div>
    <div class="balancer">

    </div>
</div>